<template>
  <c-section :title="title">
    <slot />
    <c-table-box hide-func :checkbox="checkbox" :ohter-filters="ohterFilters" :table-config="tableConfig" :v-bind="$attrs" v-on="$listeners" />
  </c-section>
</template>
<script>
export default {
  name: 'RelevanceDrawing',
  props: {
    ohterFilters: {
      type: Array,
      default: () => []
    },
    checkbox: {
      type: Boolean,
      default: false
    },
    title: {
      type: String,
      default: '关联图纸信息'
    }
  },
  data() {
    return {
      tableConfig: {
        interfacePath: `${process.env.VUE_APP_BASE_API}/api/v1/shopDesignPicture/page`,
        setting: [
          {
            prop: 'picTaskCode',
            label: '图纸编码',
            minWidth: 100
          },
          {
            prop: 'picChangeType',
            label: '图纸类型',
            propEnum: {
              domainCode: 'marketing',
              appCode: 'slm',
              dictTypeCode: 'PIC_TYPE'
            },
            minWidth: 100
          },
          {
            prop: 'designRange',
            label: '设计范围',
            propEnum: {
              domainCode: 'marketing',
              appCode: 'slm',
              dictTypeCode: 'DECORATION_RANGE'
            },
            minWidth: 100
          },
          {
            prop: 'decorationType',
            label: '装修形式',
            propEnum: {
              domainCode: 'marketing',
              appCode: 'slm',
              dictTypeCode: 'DECORATION_FORM'
            },
            minWidth: 100
          },
          {
            prop: 'designSpace',
            label: '设计区域',
            propEnum: {
              domainCode: 'marketing',
              appCode: 'slm',
              dictTypeCode: 'BELONG_REGION'
            },
            minWidth: 100
          },
          {
            prop: 'designBizType',
            label: '设计业务类型',
            propEnum: {
              domainCode: 'marketing',
              appCode: 'slm',
              dictTypeCode: 'DESIGN_BIZ_TYPE'
            },
            minWidth: 140
          },
          {
            prop: '7',
            label: '设计总面积',
            minWidth: 120
          },
          // {
          //   prop: 'endProArea',
          //   label: '成品面积',
          //   minWidth: 100
          // },
          {
            prop: 'softwareSumArea',
            label: '软体区面积',
            minWidth: 120
          },
          {
            prop: 'suiteSumArea',
            label: '套房区面积',
            minWidth: 120
          },
          {
            prop: 'haveEAndC',
            label: '是否含成融定',
            propEnum: {
              domainCode: 'marketing',
              appCode: 'slm',
              dictTypeCode: 'BOOLEANS'
            },
            minWidth: 140
          },
          {
            prop: 'finishedProductAreaSummary',
            label: '成融定面积',
            minWidth: 120
          },
          {
            prop: 'allCustomizedArea',
            label: '定制面积',
            minWidth: 100
          },
          {
            prop: 'overCupboardArea',
            label: '橱柜面积',
            minWidth: 100
          },
          {
            prop: 'bathroomArea',
            label: '卫浴面积',
            minWidth: 100
          },
          {
            prop: 'modelRoomArea',
            label: '样板间面积',
            minWidth: 100
          },
          {
            prop: 'expectEndTime',
            label: '预计设计完成时间',
            minWidth: 140
          },
          {
            prop: 'designUnitName',
            label: '设计单位',
            minWidth: 100
          },
          {
            prop: 'designerName',
            label: '设计师',
            minWidth: 100
          },
          {
            prop: 'schedule',
            label: '图纸进度',
            propEnum: {
              domainCode: 'marketing',
              appCode: 'slm',
              dictTypeCode: 'PIC_DESIGN_SCHEDULE'
            },
            minWidth: 100
          },
          {
            prop: 'state',
            label: '图纸状态',
            propEnum: {
              domainCode: 'marketing',
              appCode: 'slm',
              dictTypeCode: 'PIC_DESIGN_STATE'
            },
            minWidth: 100
          }
        ]
      }
    }
  },
  methods: {
  }
}
</script>
